<div class="content">
    <form class="form-horizontal" name="runnerForm" ng-submit="vm.submitForm(runnerForm.$valid)" novalidate>
        <div class="ibox">
            <div class="ibox-title">
                <h5>芯片信息</h5>
            </div>
            <div class="ibox-content">
                <div class="form-group">
                    <label class="col-lg-3 control-label">选手号</label>
                    <div class="col-lg-3">
                        <input type="text" name="bib" class="form-control" placeholder="请输入选手号" ng-model="vm.chip.bib">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-3 control-label">芯片号 <b class="text-danger">*</b></label>
                    <div class="col-lg-3">
                        <input type="text" name="chipNo" class="form-control" placeholder="请输入芯片号" ng-model="vm.chip.chip_no" required>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-3 control-label">厂商 <b class="text-danger">*</b></label>
                    <div class="col-lg-3">
                        <select id="select" name="chipMaker" class="form-control" ng-model="vm.chip.chip_maker" ng-options="item.name for item in vm.chip_maker_list" required>
                            <option value="">请选择厂商</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-3 control-label">芯片mac <b class="text-danger">*</b></label>
                    <div class="col-lg-3">
                        <input type="text" name="chipMac" class="form-control" placeholder="请输入地址" ng-model="vm.chip.chip_mac" required>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-lg-offset-3 col-lg-3">
                        <button type="button" class="btn btn-sm btn-default" ui-sref="dashboard.race.chiplist"><i class="fa fa-times"></i>取消</button>
                        <button type="submit" class="btn btn-sm btn-primary"><i class="fa fa-save"></i>保存</button>
                        <button type="button" class="btn btn-sm btn-danger" ng-click="vm.deleteItems($state.params.id)" ng-if="$state.params.id"><i class="fa fa-trash-o"></i>删除</button>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>